package com.ccit.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ccit.model.Admin;
import com.ccit.model.Employee;
import com.ccit.user.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


public interface AdminService extends IService<Admin> {
    //判断是否存在该管理员
    boolean isExist(String email);

    //传入Admin对象判断密码是否正确
    Admin selectAdminByEmail(Admin admin);

    String getCheckCode(String email) throws Exception;

    boolean saveEmployee(Employee employee);

    Admin login(Admin admin);
}

